package cn.tedu;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class Demo02 {
    public static void main(String[] args) {
        try(Connection conn = DBUtils.getConn();
        ){
            Statement s = conn.createStatement();
            s.execute("insert into hero(name,age) values('孙悟空',500),('猪八戒',300)");
        }catch (SQLException throwables) {
            throwables.printStackTrace();
        }
    }
}
